<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let obj = { name: 'abc', age: 18, height: 185 }
      //冒号右边是变量名
      let { age, ...myObj } = obj
      console.log(age, myObj.name, myObj.height)
    </script>
  </body>
</html>
